import Viewer from 'viewerjs';
import 'viewerjs/dist/viewer.css';

export function createViewer(images, options = {}) {
  return new Viewer(images, {
    inline: false,
    button: true,
    navbar: true,
    title: false,
    toolbar: {
      zoomIn: 1,
      zoomOut: 1,
      oneToOne: 1,
      reset: 1,
      prev: 1,
      play: 0,
      next: 1,
      rotateLeft: 1,
      rotateRight: 1,
      flipHorizontal: 1,
      flipVertical: 1,
    },
    ...options
  });
} 